package gestionColis;

/**
 * Interface definition : GestStation
 * 
 * @author OpenORB Compiler
 */
public class GestStationPOATie extends GestStationPOA
{

    //
    // Private reference to implementation object
    //
    private GestStationOperations _tie;

    //
    // Private reference to POA
    //
    private org.omg.PortableServer.POA _poa;

    /**
     * Constructor
     */
    public GestStationPOATie(GestStationOperations tieObject)
    {
        _tie = tieObject;
    }

    /**
     * Constructor
     */
    public GestStationPOATie(GestStationOperations tieObject, org.omg.PortableServer.POA poa)
    {
        _tie = tieObject;
        _poa = poa;
    }

    /**
     * Get the delegate
     */
    public GestStationOperations _delegate()
    {
        return _tie;
    }

    /**
     * Set the delegate
     */
    public void _delegate(GestStationOperations delegate_)
    {
        _tie = delegate_;
    }

    /**
     * _default_POA method
     */
    public org.omg.PortableServer.POA _default_POA()
    {
        if (_poa != null)
            return _poa;
        else
            return super._default_POA();
    }

    /**
     * Operation recupererStationAdhesion
     */
    public gestionColis.InfoStation recupererStationAdhesion(gestionColis.InfoAdherent adherent)
        throws gestionColis.AdresseNonDesservieException
    {
        return _tie.recupererStationAdhesion( adherent);
    }

    /**
     * Operation calculerCoutTransport
     */
    public double calculerCoutTransport(gestionColis.InfoStation depart, gestionColis.InfoStation arrivee)
        throws gestionColis.StationInconnueException
    {
        return _tie.calculerCoutTransport( depart,  arrivee);
    }

    /**
     * Operation demandeReservationCasier
     */
    public void demandeReservationCasier(gestionColis.InfoStation arrivee, gestionColis.InfoColis colis)
        throws gestionColis.StationInconnueException, gestionColis.AucuneCasierDispoException
    {
        _tie.demandeReservationCasier( arrivee,  colis);
    }

    /**
     * Operation enregistrerStation
     */
    public void enregistrerStation(gestionColis.Station station, String codepostal)
        throws gestionColis.StationNonConfigureeException
    {
        _tie.enregistrerStation( station,  codepostal);
    }

}
